﻿@model DeluxeSources.Practices.Models.DynamicItemCollection

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Spire PDF for .NET Example</title>
    <link type="text/css" rel="stylesheet" href="@Url.Content("~/Styles/deluxeStyles.baseStyles.css")" />
    <link rel="shortcut icon" href="@Url.Content("~/site.ico")" />
</head>
<body>
    <div class="titleOfDataTable">
        Spire PDF for .NET Example
    </div>
    <div class="horizontal"></div>
    <div class="dataTableContainer">
        <div>
            <div class="exportLinkContainer">
                <a target="_blank" href="@this.Url.RouteUrl("SpirePDF", new { controller="DynamicDataSource", action="Export", targetDataSourceUri=HttpUtility.UrlEncode( this.Request.Url.AbsoluteUri)})">
                    Click Here and Export Dynamic DataSource to PDF
                </a>
            </div>
        </div>
        <div class="tableContainer">
            <table id="CtrlTable_DataSource">
                <tr class="dataHeader">
                    <td>Serial NO.</td>
                    <td>Random Number</td>
                    <td>Random Expression</td>
                    <td>Hash Code</td>
                </tr>
                @{
                    for (var i = 0; i < this.Model.Count; i++)
                    {
                        <tr class="dataBody">
                            <td>@(i + 1)</td>
                            <td>@this.Model[i].RandomNumber</td>
                            <td>@this.Model[i].RandomHexExpression</td>
                            <td>@this.Model[i].HashCodeHexExpression</td>
                        </tr>
                    }
                }
            </table>
        </div>
    </div>
    <div class="copyrightText">
        <a href="mailto:yucai.wang-public@outlook.com" target="_self">Copyright © 2015 Wang Yucai.</a>
    </div>
</body>
</html>
